<!-- left -->

		<!-- new  product -->
		<div class="block">
			<h3 class="title"><?php echo $this->translate('Sản phẩm mới')?></h3>

			<!-- list product -->
			<div class="content">
				<?php 
					
					foreach($this->productNew as $item):
				?>
				<div class="product-item">
					<div class="product-image">
						<a href="<?php echo $this->baseUrl('/'.LANG.'/san-pham/chi-tiet/'.$item['product_id'].'-'.$item['product_alias'].'.html')?>">
						<img src="<?php echo PUBLIC_RESOURCE.'/uploads/images/products/thumbs/'.$item['product_image']?>" title="" /></a>
					</div>
					<p>
						<a href="<?php echo $this->baseUrl('/'.LANG.'/san-pham/chi-tiet/'.$item['product_id'].'-'.$item['product_alias'].'.html')?>" class="name"><?php echo $item['product_name']?></a>
					</p>
					<?php 
						if($item['product_saleoff_status']==1 && $this->currentTime < $item['product_saleoff_end']){						
					?>
						<p>
						<a href="<?php echo $this->baseUrl('/'.LANG.'/san-pham/chi-tiet/'.$item['product_id'].'-'.$item['product_alias'].'.html')?>" class="price price-old"><?php echo number_format($item['product_price_old'])?> vnd</a>
					</p>
					<?php 
						}
					?>
					<p>
						<a href="<?php echo $this->baseUrl('/'.LANG.'/san-pham/chi-tiet/'.$item['product_id'].'-'.$item['product_alias'].'.html')?>" class="price"><?php echo number_format($item['product_price'])?> vnd</a>
					</p>

				</div>
				
				<?php endforeach;?>
				<div class="clearb"></div>
 				<p class="see-more"> 
					<a href="<?php echo '/'.LANG.'/san-pham-moi.html'; ?>" title="xem toàn bộ">[ <?php echo $this->translate('Xem toàn bộ')?> ]</a>
 				</p> 
			</div>	
			<!-- end list product -->
			
		</div>
		<!-- end block -->

		<!-- hot  product -->
		<div class="block">
			<h3 class="title"><?php echo $this->translate('Sản phẩm hot')?></h3>

			<!-- list product -->
			<div class="content">
			<?php 
				
				foreach($this->productHot as $item):
			?>
				<div class="product-item">
					<div class="product-image">
						<a href="<?php echo $this->baseUrl('/'.LANG.'/san-pham/chi-tiet/'.$item['product_id'].'-'.$item['product_alias'].'.html')?>">
						<img src="<?php echo PUBLIC_RESOURCE.'/uploads/images/products/thumbs/'.$item['product_image']?>" title="" /></a>
					</div>
					<p>
						<a href="<?php echo $this->baseUrl('/'.LANG.'/san-pham/chi-tiet/'.$item['product_id'].'-'.$item['product_alias'].'.html')?>" class="name"><?php echo $item['product_name']?></a>
					</p>
					<?php 
						if($item['product_saleoff_status']==1 && $this->currentTime < $item['product_saleoff_end']){						
					?>
						<p>
						<a href="<?php echo $this->baseUrl('/'.LANG.'/san-pham/chi-tiet/'.$item['product_id'].'-'.$item['product_alias'].'.html')?>" class="price price-old"><?php echo number_format($item['product_price_old'])?> vnd</a>
					</p>
					<?php 
						}
					?>
					<p>
						<a href="<?php echo $this->baseUrl('/'.LANG.'/san-pham/chi-tiet/'.$item['product_id'].'-'.$item['product_alias'].'.html')?>" class="price"><?php echo number_format($item['product_price'])?> vnd</a>
					</p>
				</div>
			<?php endforeach;?>
				<div class="clearb"></div>
 				<p class="see-more"> 
					<a href="<?php echo '/'.LANG.'/san-pham-hot.html'; ?>" title="xem toàn bộ">[ <?php echo $this->translate('Xem toàn bộ')?> ]</a>
 				</p> 
            </div>
			<!-- end list product -->
			
		</div>
		<!-- end block -->

		<!-- Khuyen mai  product -->
		<div class="block">
			<h3 class="title"><?php echo $this->translate('Sản phẩm khuyến mãi')?></h3>

			<!-- list product -->
			<div class="content">
			<?php 
				
				foreach($this->productSaleOff as $item):
				
					//nếus còn trong thời gian khuyến mãi
					if($this->currentTime < $item['product_saleoff_end']){

			?>
				<div class="product-item">
					<div class="product-image">
						<a href="<?php echo $this->baseUrl('/'.LANG.'/san-pham/chi-tiet/'.$item['product_id'].'-'.$item['product_alias'].'.html')?>">
						<img src="<?php echo PUBLIC_RESOURCE.'/uploads/images/products/thumbs/'.$item['product_image']?>" title="" /></a>
					</div>
					<p>
						<a href="<?php echo $this->baseUrl('/'.LANG.'/san-pham/chi-tiet/'.$item['product_id'].'-'.$item['product_alias'].'.html')?>" class="name"><?php echo $item['product_name']?></a>
					</p>
					<?php 
						if($item['product_saleoff_status']==1){						
					?>
						<p>
						<a href="<?php echo $this->baseUrl('/'.LANG.'/san-pham/chi-tiet/'.$item['product_id'].'-'.$item['product_alias'].'.html')?>" class="price price-old"><?php echo number_format($item['product_price_old'])?> vnd</a>
					</p>
					<?php 
						}
					?>
					<p>
						<a href="<?php echo $this->baseUrl('/'.LANG.'/san-pham/chi-tiet/'.$item['product_id'].'-'.$item['product_alias'].'.html')?>" class="price"><?php echo number_format($item['product_price'])?> vnd</a>
					</p>
				</div>
			<?php 
					}
				endforeach;?>
				<div class="clearb"></div>
 				<p class="see-more"> 
					<a href="<?php echo '/'.LANG.'/san-pham-khuyen-mai.html'; ?>" title="xem toàn bộ">[ <?php echo $this->translate('Xem toàn bộ')?> ]</a>
 				</p> 
            </div>
			<!-- end list product -->
			
		</div>
		<!-- end block -->
